package com.dayu.basic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dayu.basic.mapper.BasicStoreMapper;
import com.dayu.basic.domain.BasicStore;
import com.dayu.basic.service.IBasicStoreService;

/**
 * 门店管理Service业务层处理
 * 
 * @author HK
 * @date 2021-04-15
 */
@Service
public class BasicStoreServiceImpl implements IBasicStoreService 
{
    @Autowired
    private BasicStoreMapper basicStoreMapper;

    /**
     * 查询门店管理
     * 
     * @param storeId 门店管理ID
     * @return 门店管理
     */
    @Override
    public BasicStore selectBasicStoreById(Long storeId)
    {
        return basicStoreMapper.selectBasicStoreById(storeId);
    }

    /**
     * 查询门店管理列表
     * 
     * @param basicStore 门店管理
     * @return 门店管理
     */
    @Override
    public List<BasicStore> selectBasicStoreList(BasicStore basicStore)
    {
        return basicStoreMapper.selectBasicStoreList(basicStore);
    }

    /**
     * 新增门店管理
     * 
     * @param basicStore 门店管理
     * @return 结果
     */
    @Override
    public int insertBasicStore(BasicStore basicStore)
    {
        return basicStoreMapper.insertBasicStore(basicStore);
    }

    /**
     * 修改门店管理
     * 
     * @param basicStore 门店管理
     * @return 结果
     */
    @Override
    public int updateBasicStore(BasicStore basicStore)
    {
        return basicStoreMapper.updateBasicStore(basicStore);
    }

    /**
     * 批量删除门店管理
     * 
     * @param storeIds 需要删除的门店管理ID
     * @return 结果
     */
    @Override
    public int deleteBasicStoreByIds(Long[] storeIds)
    {
        return basicStoreMapper.deleteBasicStoreByIds(storeIds);
    }

    /**
     * 删除门店管理信息
     * 
     * @param storeId 门店管理ID
     * @return 结果
     */
    @Override
    public int deleteBasicStoreById(Long storeId)
    {
        return basicStoreMapper.deleteBasicStoreById(storeId);
    }
}
